/**
 * 小程序配置文件
 */

// 此处主机域名修改成腾讯云解决方案分配的域名
var host = "gupiao.test.saiguhui.com"


var config = {

    // 下面的地址配合云端 Demo 工作
    service: {
        host,

        // 登录地址，用于建立会话
        loginUrl: `https://${host}/index/user/login`,

        // 测试的请求地址，用于测试会话
        requestUrl: `https://${host}/index/user`,

        // 测试的信道服务地址
        tunnelUrl: `https://${host}/index/weapp/tunnel`,

        // 上传图片接口
        uploadUrl: `https://${host}/index/weapp/upload`
        },
        api:{
        // 查询自选股列表
        stockList:`https://${host}/index/stock/lists`,
        // 查询次数
        surplusSearch:`https://${host}/index/user/info`,
        // 传入微信号
        setWeixinId:`https://${host}/index/user/set`,
        /*热搜*/
        hot:`https://${host}/index/stock/other`,
        /*搜索*/
        search:`https://${host}/index/stock/search`,
        /*分享*/
        from:`https://${host}/index/user/from`,
        /*详情*/
        stockInfo:`https://${host}/index/stock/info`,
        /*详情*/
        stockHq:`https://${host}/index/stock/hq`,
        /*增加自选股*/
        stockAdd:`https://${host}/index/stock/add`,
        /*删除自选股*/
        stockDel:`https://${host}/index/stock/del`,
        /*pay*/
        pay:`https://${host}/index/user/pay`,
        /*证券指数*/
        stockOnLine:`https://${host}/index/stock/zs`,
        /*证券PE*/
        stockPe:`https://${host}/index/stock/zspe`,
        // 其他接口
        other:`https://${host}/index/stock/other`,
        // 股票tab栏api集合
        stockDetailApiList:[
            [`https://${host}/index/stock/gz`,`https://${host}/index/stock/pe`,`https://${host}/index/stock/pb`,`https://${host}/index/stock/ps`],
            [`https://${host}/index/stock/xsmll`,`https://${host}/index/stock/jzcsyl`,`https://${host}/index/stock/yszs`,`https://${host}/index/stock/jlzs`],
            [`https://${host}/index/stock/zy`,`https://${host}/index/stock/jj`,`https://${host}/index/stock/zjc`]
        ],
            //成长性tab小参数接口
        czxTab:`https://${host}/index/stock/czx`,
            // pdf接口
            pdfApi:`https://${host}/index/stock/cgbd`

    }
};

module.exports = config;